using Serilog;
using Serilog.Configuration;
using SG3L_RAG.Infrastructure.Logging;

namespace SG3L_RAG.Infrastructure.Extensions
{
    public static class SerilogExtensions
    {
        public static LoggerConfiguration Database(
            this LoggerSinkConfiguration loggerConfiguration,
            IServiceProvider serviceProvider)
        {
            return loggerConfiguration.Sink(new DatabaseSink(serviceProvider));
        }
    }
}
